package com.xuecheng;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.spring4all.swagger.EnableSwagger2Doc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

@Slf4j
@EnableFeignClients
@EnableSwagger2Doc
@SpringBootApplication
public class ContentApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context =
                SpringApplication.run(ContentApplication.class,args);
        ObjectMapper mapper = context.getBean(ObjectMapper.class);
        System.out.println("Serialization Features: " + mapper.getSerializationConfig());
        System.out.println("Deserialization Features: " + mapper.getDeserializationConfig());
    }
}
